<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>tags list</title>
    </head>
    <body>
        <table>
            <thead>
                <tr>
                    <th>id</th>
                    <th>name</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                <% for(var i = 0; i < tags.length; i++){ %>
                    <tr>
                        <td><%= tags[i].id %></td>
                        <td><%= tags[i].name %></td>
                        <td><% if(tags[i].id > 3){ %><a href="delete?id=<%= tags[i].id %>">删除</a>&nbsp;&nbsp;<a href="edit?id=<%= tags[i].id %>">编辑</a><%}%></td>
                    </tr>
                <% } %>
            </tbody>
        </table>
    </body>
</html>
